package com.cyt.work.kwmanagement.model.po;

import com.cyt.base.util.BaseUtil;
import com.cyt.base.util.DictCode;
import com.cyt.sys.model.po.SysUser;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 考场设置表-考场设置表实体类
 *
 * @author han jun
 * @date 2019-11-26 11:22:26
 */
@Data
@NoArgsConstructor
@Table(name = "cyt_kw_kc_setting")
public class KwKcSetting implements Serializable {

	/**
     * 主键
     */ 
	@Id
	private String id;

	/**
     * 模块ID
     */ 
	@Column(name = "apply_id")
	private String applyId;

	/**
     * 考务id
     */ 
	@Column(name = "ks_id")
	private String ksId;

	/**
     * 成绩分配(0:是，2：否)
     */ 
	@Column(name = "cjfp")
	private String cjfp;

	/**
     * 考场设置(1:是，2：否)
     */ 
	@Column(name = "kcsz")
	private String kcsz;

	/**
     * 考场数
     */ 
	@Column(name = "kc_num")
	private String kcNum;

	/**
     * 监考人数
     */ 
	@Column(name = "jk_num")
	private String jkNum;

	/**
     * 巡考人数
     */ 
	@Column(name = "xk_num")
	private String xkNum;

	/**
     * 状态(1:正常，2：删除)
     */ 
	@Column(name = "remove_tag")
	private String removeTag;

	/**
     * 创建时间
     */ 
	@Column(name = "create_time")
	private Date createTime;

	/**
     * 更新时间
     */ 
	@Column(name = "update_time")
	private Date updateTime;

	/**
     * 创建人
     */ 
	@Column(name = "create_user")
	private String createUser;

	/**
     * 更新人
     */ 
	@Column(name = "update_user")
	private String updateUser;

	/**
	 * 创建对象
	 *
	 * @param sysUser 当前用户信息
	 * @author han jun
	 * @date 2019-11-26 11:22:26
	 */
	public KwKcSetting(SysUser sysUser) {
		this.id = BaseUtil.uId();
		this.removeTag = DictCode.BASE_REMOVE_TAG_NORMAL;
		this.createTime = new Date();
		this.createUser = sysUser.getId();
		this.updateTime = new Date();
		this.updateUser = sysUser.getId();
	}
}